﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wildweeds.SSO.Entity;

namespace Wildweeds.SSO.Passport
{
    public partial class SignOut : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Session["user"] = null;
            Session.Clear();
            string ReturnUrl = Context.Request.QueryString["ReturnUrl"];
            if (!string.IsNullOrWhiteSpace(ReturnUrl))
            {
                Response.Redirect(ReturnUrl);
                return;
            }
            Response.Write("<script>window.opener=null;window.close();</script>");
        }
    }
}